package com.marktotop.service;

import com.marktotop.entity.Log;
import com.marktotop.response.ResultBean;
import org.springframework.scheduling.annotation.Async;

/**
 * LogService
 *
 * @author WXLD
 * @Data 2021/7/1
 * @Since 1.0
 */
public interface ILogService {


    /**
     * 异步保存操作日志
     */
    @Async("CodeAsyncThreadPool")
    void saveLog(Log log);

    /**
     * 查询所有日志，分页实现
     *
     * @param currentPage
     * @param size
     * @param log
     * @return
     */
    ResultBean findLogList(Integer currentPage, Integer size, Log log);
}
